<?php exit("breakcms"); ?>
{include file="public/not_index_header.php"}
{if $_POST['action']=='show'}
<div class="showinfo">
    查找用户时,若同时设定了'用户名'和'昵称',则只按用户名查找.
</div>

<div class="search_div_1">
    <form action="" method="post">
        <table width="100%" border="0">
            <tr>
                <td>用户名</td>
                <td><input name="user_login" class="input_text_2"  /></td>
                <td>昵称</td>
                <td><input name="user_nicename" class="input_text_2"  /></td>
                <td>用户组</td>
                <td><select name="group_id" class="select_default" >
                        <option selected="selected" value="" class="select_default" >全部</option>
                        <option value="1">管理员</option>
                        <option value="2">游客组</option>
                        <option value="3">禁止访问</option>
                        <option value="4">禁止发言</option>
                        <option value="14">高级会员</option>
                        <option value="13">中级会员</option>
                        <option value="12">初级会员</option>
                        <option value="11">受限制会员</option>
                        <option value="10">贵宾VIP</option>
                    </select></td>
                <td><select name="orderby" class="select_default" >
                        <option selected="selected" value="user_id">默认排序</option>
                        <option value="user_registered">注册时间</option>
                    </select></td>
                <td><select name="ordersc" class="select_default" >
                        <option selected="selected" value="asc">升序</option>
                        <option value="desc">降序</option>
                    </select></td>
                <td><select name="perpage" class="select_default" >
                        <option selected="selected" value="15">15 条/页</option>
                        <option value="30">30 条/页</option>
                        <option value="50">50 条/页</option>
                        <option value="100">100 条/页</option>
                    </select></td>
                <td><input value="GO" type="submit" class="button_1"  /></td>
            </tr>
        </table>
    </form>
</div>

<div class="showtable">
    <table border="0" cellpadding="0" cellspacing="1" width="100%" class="tableborder">
        <tr  class="textcenter  tr1">
            <td width="20%">用户系统ID</td>
            <td width="35%" align="center">登录名/昵称</td>
            <td align="center">所属组</td>
            <td width="25%">操作</td>
        </tr>
        {foreach from="$USER"}
        <tr  onmouseover="$reClassName=this.className;this.className='textcenter table_tr_bgin'" onmouseout="this.className=$reClassName"  class="textcenter  {cycle values="table_tr_bg1,table_tr_bg2"}">
             <td>{$item['user_id']}</td>
                         <td>{$item['user_login']}/{$item['user_nicename']}</td>
                         <td>{$GROUP[$item['group_id']]['group_name']}</td>
                         <td><a href="?{$item['user_id']|bgpre:'a-edit/userId-'.this}">编辑</a>&nbsp;&nbsp;{if $item['group_id']!=1}<a href="?{$item['user_id']|bgpre:'listac-del/userId-'.this}" onclick="if(!confirm('确定删除此用户吗?\n\n\n\n\n\n\n')){return false}">删除</a>{/if}</td>
                     </tr>
                     {/foreach}
        </table>
    </div>
    <div class="showbutton_right">
        <div class="pageX fr">
            {pagecontroller}
            <span><a href="?">First</a></span><span><a href="">1</a></span><span><a href="">8</a></span><span><a href="">End</a></span>
        </div>
    </div>

    {elseif $_POST['action']=='update'}

    {include file="public/message.php"}

    {elseif $_POST['action']=='error' || $_POST['action']=='message' || $_POST['action']=='noSearchRS'}
    {include file="public/message.php"}
    {/if}
    {include file="public/not_index_footer.php"}